'''
Author: Maverick m14775611609@163.com
Date: 2025-03-15 22:06:33
LastEditors: Maverick m14775611609@163.com
LastEditTime: 2025-03-15 22:09:46
FilePath: /embedded_driver/test.py
Description: 

Copyright (c) 2025 by Maverick, Xiao Bi Software Company ,All Rights Reserved. 
'''
import requests
import time

url = "https://ymtest.online/"
interval = 1  # 每60秒访问一次

while True:
    try:
        response = requests.get(url)
        if response.status_code == 200:
            print(f"访问成功，状态码：{response.status_code}")
        else:
            print(f"访问失败，状态码：{response.status_code}")
    except Exception as e:
        print(f"访问时发生错误：{e}")
    time.sleep(interval)